package com.zy.studentSide.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zy.studentSide.entity.StudentCourse;

import java.util.List;

/**
 * @author 29787
 */
public interface IStudentCourseService extends IService<StudentCourse> {

    /**
     * 根据学生id查询
     * @param studentId
     * @return List<StudentCourse>
     */
    List<StudentCourse> getAllStudentCourse(Integer studentId);

    /**
     * 根据学生id,教师id，班级id，课程id查询已选课程信息
     * @param studentId
     * @param courseId
     * @param teacherId
     * @param classroomId
     * @return StudentCourse
     */
    StudentCourse getStudentCourse(Integer studentId,Integer courseId,Integer teacherId, Integer classroomId);

    /**
     * 根据班级id，课程id，教师id查询
     * @param courseId
     * @param teacherId
     * @param classroomId
     * @return List<StudentCourse>
     */
    List<StudentCourse> getStudentCourseByCourseIdAndTeacherIdAndClassroomId(Integer courseId,Integer teacherId, Integer classroomId);

}
